package com.nb.service;

import com.nb.dao.UserDao;

public class UserServiceImpl implements UserService{
    private UserDao userDao;
    //利用set进行动态实现值的注入
    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

    @Override
    public void showUser() {
        userDao.showUser();
    }
}
